import request from '@/utils/request'

// 查询填报主表列表
export function listReportInfo(query) {
  return request({
    url: '/reportReview/reportInfo/list',
    method: 'get',
    params: query
  })
}

// 查询填报主表详细
export function getReportInfo(id) {
  return request({
    url: '/reportReview/reportInfo/' + id,
    method: 'get'
  })
}

// 新增填报主表
export function addReportInfo(data) {
  return request({
    url: '/reportReview/reportInfo',
    method: 'post',
    data: data
  })
}

// 修改填报主表
export function updateReportInfo(data) {
  return request({
    url: '/reportReview/reportInfo',
    method: 'put',
    data: data
  })
}

export function reviewReportInfo(data) {
  return request({
    url: '/reportReview/reportInfo/review',
    method: 'post',
    data: data
  })
}

// 删除填报主表
export function delReportInfo(id) {
  return request({
    url: '/reportReview/reportInfo/' + id,
    method: 'delete'
  })
}

export function getReportInfoById(id) {
  return request({
    url: '/reportReview/reportInfo/getReportInfoById/' + id,
    method: 'get'
  })
}
